
<?php
$form = $this->beginWidget('CActiveForm', array(
    "id" => "addVoucherForm",
    'enableAjaxValidation' => FALSE,
    'htmlOptions' => array('enctype' => 'multipart/form-data'),
        ));

$model = new BDynamicFormModel();
$permitTypeField = 'media_permitType_choose_permitType';
$model->addField($permitTypeField);
?>
<table class="table table-hover">
    <colgroup>
        <col class="span1">
        <col class="span7">
    </colgroup>
    <tbody>
        <tr><td> <?php echo '选择类型'; ?> </td>
            <td>
                <?php
                $permitCooker = new BCafePermitCooker();
                echo CHtml::activeDropDownList($model, $permitTypeField, $permitCooker->getPermitTypeList(), array('required' => true));
                ?>
            </td>
        </tr>
    </tbody>
</table>

<div class="row-fluid">
    <?php
    echo $control->getAjaxLink('继续添加', array(
        'cooker' => 'BCafeVoucher@showAddApplyPermit',
        'htmlOptions' => array('class' => 'btn ')
    ));
    ?>    

</div>

<?php
$this->endWidget();
?>